#include <string>
using std::string;

extern int encrypt_file_content(const char *const path, const string &passwd);
extern int decrypt_file_content(const char *const path, const string &passwd);
extern string encrypt_file_content(const string &byte_array, const string &passwd);
extern string decrypt_file_content(const string &byte_array, const string &passwd);

extern string encrypt_filename(const string &name, const string &passwd);
extern string decrypt_filename(string name, const string &passwd);

extern void rename_file(string abs_file_path, string new_filename);